<style>
.arrow-text {
	display:inline-block;padding:0.1rem 0.3rem;color:#fff;font-size:0.5rem;background:#ff4e2c;border-radius:0.1rem;
}
.arrow-right {
  display:inline-block;
  width:0px;
  height:0px;
  border-bottom:5px solid transparent;  /* left arrow slant */
  border-top:5px solid transparent; /* right arrow slant */
  border-left:5px solid #ff4e2c; /* bottom, add background color here */
  font-size:0px;
  line-height:0px;
  margin-bottom:-1px
}
</style>
<div class="weui_cells_title" style="margin:0.5rem;padding-left:0.2rem">{{pagedata.typeinfo.unit || '活动'}}设置</div>
<div class="fui-cell-group" style="padding: 0;background-color: #fff;border-radius: 10px;">
				<div ng-if="pagedata.post.gamename=='jy_merchgame_fx'" class="fui-cell">
						<div class="fui-cell-text">分销佣金</div>
						<div class="fui-cell-remark" style="color:#61bba7" ng-click="pagedata.showgoods_fxset=true">
							<span class="arrow-text" style="margin-right:-0.25rem">分销佣金设置</span>
							<span class="arrow-right"></span>
							已设置{{pagedata.post.goods.length || 0}}件商品
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchgame_pt'" class="fui-cell">
						<div class="fui-cell-text">成团人数</div>
						<div class="fui-cell-info" style="color:#61bba7">
							<input class="weui_input" style="background-color: #f2f2f2;" type="text" ng-model="pagedata.post.gameset.teamnum" placeholder="人数">
						</div>
						<div class="fui-cell-remark">
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchgame_bm'" class="fui-cell">
						<div class="fui-cell-text">帮卖佣金</div>
						<div class="fui-cell-remark" style="color:#61bba7" ng-click="pagedata.showgoods_bmset=true">
							<span class="arrow-text" style="margin-right:-0.25rem">帮卖佣金设置</span>
							<span class="arrow-right"></span>
							已设置{{pagedata.post.goods.length || 0}}件商品
						</div>
				</div>
				<div ng-if="pagedata.isdiygoods==1 && pagedata.post.gamename!='jy_merchgame_bao'" class="fui-cell">
						<div class="fui-cell-text">物流方式</div>
						<div class="fui-cell-remark" style="color:#61bba7">
						<select ng-model="pagedata.post.sendtype" name="fensinfo_set">
								<option ng-selected="pagedata.post.sendtype==0" value="0">快递/自提</option>
								<option ng-selected="pagedata.post.sendtype==1" value="1">快递发货</option>
								<option ng-selected="pagedata.post.sendtype==2" value="2">提货点自提</option>
								<option ng-selected="pagedata.post.sendtype==3" value="3">虚拟物品</option>
						</select>
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchgame_bao'" class="fui-cell">
						<div class="fui-cell-text">活动形式</div>
						<div class="fui-cell-remark" style="color:#61bba7">
						<select ng-model="pagedata.post.gameset.bao_type" name="fensinfo_set">
								<option ng-selected="pagedata.post.gameset.bao_type==0" value="0">线上活动</option>
								<option ng-selected="pagedata.post.gameset.bao_type==1" value="1">线下活动</option>
								<option ng-selected="pagedata.post.gameset.bao_type==2" value="2">线上线下活动</option>
						</select>
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchgame_bao'" class="fui-cell">
						<div class="fui-cell-text">活动备注</div>
						<div class="fui-cell-remark" style="color:#61bba7">
						 请设置活动备注
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchgame_bao'" class="fui-cell">
						<div class="fui-cell-text">报名设置</div>
						<div class="fui-cell-remark" ng-click="pagedata.showcanyufileds=true" style="color:#61bba7">
						姓名、手机
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchtool_fee'" class="fui-cell">
						<div class="fui-cell-text">目标费用</div>
						<div class="fui-cell-info" style="color:#61bba7">
							<input class="fui-input r" style="background-color: #f2f2f2;" type="text" ng-model="pagedata.post.gameset.wantmoney" placeholder="输入目标费用">
						</div>
						<div class="fui-cell-remark">
						</div>
				</div>
				<div ng-if="pagedata.post.gamename=='jy_merchtool_gq'" class="fui-cell">
						<div class="fui-cell-text">供求类型</div>
						<div class="fui-cell-remark" style="color:#61bba7">
						<select ng-model="pagedata.post.gameset.gq_type" name="fensinfo_set">
								<option ng-selected="pagedata.post.gameset.gq_type==0" value="0">供应东西</option>
								<option ng-selected="pagedata.post.gameset.gq_type==1" value="1">求购东西</option>
						</select>
						</div>
				</div>
				<div class="fui-cell">
						<div class="fui-cell-text">{{pagedata.typeinfo.unit}}结束时间</div>
						<div class="fui-cell-info r" style="color:#61bba7">
							<input class="fui-input r" style="width:5.5rem;margin-right:-1rem" type="date" value="{{pagedata.post.onlinetime}}" ng-model="pagedata.post.onlinetime" placeholder="发布后，一周内有效">
						</div>
						<div class="fui-cell-remark">
						</div>
				</div>
</div>
<div ng-if="pagedata.showgoods_fxset" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showgoods_fxset=false"></i>
			<div style="height:20rem;">
			<div class="weui_cells_title c" style="padding:0.1rem 0.5rem">全民分享销售赚佣金.销量涨不停</div>
			<div class="item-up-content item-ng">
				<div class="weui_cells weui_cells_form">
						<div class="weui_cell">
							<div class="weui_cell_hd" style="width:40%"><label class="weui_label" style="font-size:0.6rem">商品</label></div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">活动价</span>
							</div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">一级佣金</span>
							</div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">二级佣金</span>
							</div>
						</div>
						<div class="weui_cell" ng-repeat="g in pagedata.post.goods">
							<div class="weui_cell_hd overflow-h" style="width:40%">{{g.title}}</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%">
								<input class="weui_input c" style="background-color: #f2f2f2;" type="text" ng-model="g.price" placeholder="活动价">
							</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%;margin:0 0.5rem">
								<input class="weui_input c" style="background-color: #f2f2f2;" type="text" ng-model="g.fxfee01" placeholder="一级佣金">
							</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%;margin:0 0.5rem">
								<input class="weui_input c" style="background-color: #f2f2f2;" type="text" ng-model="g.fxfee02" placeholder="二级佣金">
							</div>
						</div>
				</div>
			</div>
			<div class="fui-navbar">
				<a ng-click="pagedata.showgoods_fxset=false" class="nav-item btn btn-success confirmbtn">确定</a>
			</div>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showgoods_bmset" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showgoods_bmset=false"></i>
			<div style="height:20rem;">
			<div class="weui_cells_title c" style="padding:0.1rem 0.5rem">全民帮卖赚佣金.销量涨不停</div>
			<div class="item-up-content item-ng">
				<div class="weui_cells weui_cells_form">
						<div class="weui_cell">
							<div class="weui_cell_hd" style="width:40%"><label class="weui_label" style="font-size:0.6rem">商品</label></div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">售价</span>
							</div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">供货价</span>
							</div>
							<div class="weui_cell_bd weui_cell_primary c" style="width:20%">
								<span style="font-size:0.6rem">团长佣金</span>
							</div>
						</div>
						<div class="weui_cell" ng-repeat="g in pagedata.post.goods">
							<div class="weui_cell_hd overflow-h" style="width:40%">{{g.title}}</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%">
								<input class="weui_input c" style="background-color: #f2f2f2;" type="text" ng-model="g.price" ng-change="pagedata.refresh($index)" placeholder="售价">
							</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%;margin:0 0.5rem">
								<input class="weui_input c" style="background-color: #f2f2f2;" type="text" ng-model="g.bmprice" ng-change="pagedata.refresh($index)" placeholder="供货价">
							</div>
							<div class="weui_cell_bd weui_cell_primary" style="width:20%;margin:0 0.5rem">
								<span class="weui_input c">{{g.bmfee || '0.00'}}</span>
							</div>
						</div>
				</div>
			</div>
			<div class="fui-navbar">
				<a ng-click="pagedata.showgoods_bmset=false" class="nav-item btn btn-success confirmbtn">确定</a>
			</div>
			</div>
		</div>
	</div>
</div>
<script>
scope.pagedata.post.onlinetime=new Date(scope.pagedata.post.onlinetime);
scope.pagedata.refresh=function(index){
	scope.pagedata.post.goods[index].bmfee=scope.pagedata.post.goods[index].price-scope.pagedata.post.goods[index].bmprice;
}
</script>